Unit protection for transformer